tests: Remove spurious gtk_container_add()
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 4 Feb 2019 09:02:15 +0000 (10:02 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 4 Feb 2019 09:03:33 +0000 (10:03 +0100)
Commit bd71e744d2e5dbd853f0c719dd3ebe6abb2f72b6 removed
gtk_box_pack_end(), but it added a gtk_container_add() with an
uninitialised widget, and the compiler is very unhappy about it.

tests/testgtk.c

index 9adbd06aba96f624c69d51b325cfceb89a47cf52..a7a1c81f87f69790f7e2614677051bd500e4064f 100644 (file)
@@ -4182,7 +4182,6 @@ create_pages (GtkNotebook *notebook, gint start, gint end)
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
       gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE);
       gtk_container_add (GTK_CONTAINER (vbox), hbox);
-      gtk_container_add (GTK_CONTAINER (vbox), button);
 
       button = gtk_check_button_new_with_label ("Fill Tab");
       gtk_container_add (GTK_CONTAINER (hbox), button);